package com.huyiyu.dbproject.service;

import com.huyiyu.dbproject.dto.User;
import com.huyiyu.dbproject.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

  @Autowired
  private UserMapper userMapper;

  public User getUser(User user){
    User temp = userMapper.getUser(user);
    System.out.println(user);
    return temp;
  }

}
